<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系统通知添加</title>

<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
<link href="css/css.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" charset="utf-8" src="ueditor/editor_config.js"></script>
<script type="text/javascript" charset="utf-8" src="ueditor/editor_all.js"></script>
<script src="js/jquery-1.9.0.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/WarnMessages.js"></script>

<style type="text/css">
<!--
.atten {
	font-size: 12px;
	font-weight: normal;
	color: #F00;
}
-->
</style>

<script type="text/javascript">
/*****以下是表单验证****/
$(function() {
	$("#myform").validate({
		rules : {
			'sysMsg.smTitle' : {
				required : true
			},
			'sysMsg.smContent' : {
				required : true
			}
		}
	});
});
/*****以上是表单验证****/
</script>
</head>
<body class="ContentBody">
	<div class="MainDiv">
		<table width="99%" border="0" cellpadding="0" cellspacing="0" class="CContent">
			<tr><th class="tablestyle_title">新建系统消息</th></tr>
			<tr>
				<td class="CPanel">
					<table border="0" cellpadding="0" cellspacing="0"
						style="width:100%">
						<tr>
							<td width="100%">
								<fieldset style="height:100%;">
									<legend>添加通知</legend>
									<form id="myform" action="admin/sysMsgAdd" method="post">
										<table border="0" cellpadding="2" cellspacing="1" width="800px">
											<tr>
												<td width="30">&nbsp;</td>
												<td align="right" width="60px">通知标题:</td>
												<td><input name="sysMsg.smTitle" type="text" class="text" style="width:493px" /></td>
											</tr>
											<tr>
												<td>&nbsp;</td>
												<td align="right" valign="top">通知内容:</td>
												<td><textarea name="sysMsg.smContent" id="editor" style="width:500px; height:300px" type="text/plain"></textarea></td>
											</tr>
											
											<tr>
												<td>&nbsp;</td>
												<td>&nbsp;</td>
												<td align="center">
													<input type="submit" class="right-button02" value="提交" />
													&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
													<input type="reset" class="right-button02" value="重置" />
												</td>
											</tr>
										</table>
									</form>
									<br />
								</fieldset>
							</td>
						</tr>
						<tr>
							<td>&nbsp;</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</div>
</body>
<script type="text/javascript">
//实例化编辑器
var ue = UE.getEditor('editor');
<%--
ue.addListener('ready',function(){
	this.focus();
});
--%>
</script>
</html>
